﻿using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ttbit.core;
using ttbit.WorkingSpace;

namespace pixeleditor.WorkingSpace.Resource
{
 
    public class Resource_Atlas : IWorkResource
    {
        public const string TypeStr = "Atlas";

        public List<string> sprites = new List<string>();

        public string[] RefResource => sprites.ToArray();

        public bool ContainsResource(string name)
        {
            return RefResource.Contains(name);
        }

        public Resource_Atlas(string name)
        {
            this.Name = name;
        }
        public string Name
        {
            get;
            private set;
        }

        public string TypeName => TypeStr;
        public bool Dirty
        {
            get;
            private set;
        }
        public void MarkDirty()
        {
            Dirty = true;
        }
        public void ClearDirty()
        {
            Dirty = false;
        }
        public void Dispose()
        {

        }
    }
}
